package com.jdojo.container;

import javafx.scene.Group;
import javafx.scene.layout.StackPane;

/**
 * @author jojorabbit
 */
public class CssTest001 extends ExtendedApplication {
    StackPane cssNode;

    public static void main(final String[] args) {
        launch(args);
    }

    @Override
    protected void setup() {

        cssNode = new StackPane();
        cssNode.getStyleClass().add("custom-node");
        cssNode.setPrefSize(300, 300);
        root.getChildren().add(new Group(cssNode)); // adding to group so root does not resize custom node
    }

    @Override
    protected String getAppTitle() {
        return "CSS Test 001";
    }

    @Override
    protected void setupCss() {
        scene.getStylesheets().add(this.getClass().getResource("/css/csstest001.css").toExternalForm());
    }

}